package com.dxl.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.dxl.utils.converter.SexConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserRes {
    @ApiModelProperty("用户名")
    @ExcelProperty(value = "用户名", index = 0)
    private String name;
    @ApiModelProperty("密码")
    @ExcelProperty(value = "密码", index = 1)
    private String password;
    @ApiModelProperty("性别")
    @ExcelProperty(value = "性别", converter = SexConverter.class, index = 2)
    private Integer sex; //这里是整数型，方便导出导入excel
    @ApiModelProperty("创建时间")
    @ExcelProperty(value = "创建时间", index = 4)
    private Date createTime;
    @ApiModelProperty("更新时间")
    @ExcelProperty(value = "更新时间", index = 3)
    private Date updateTime;
}
